arithmetic and geometric sequence for grade 12